var _ = require("lodash");
// _.dropRight(array, [n=1])
// 创建一个切片数组，去除array尾部的n个元素。（n默认值为1。）
let arr = [1, 2, 3];
console.log(_.dropRight(arr));
console.log(_.dropRight(arr, 2));
console.log(_.dropRight(arr, 5));
console.log(_.dropRight(arr, 0));
